<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
<title>订单管理</title>
  <script src="/drclothes/Public/js/jquery.min.js"></script>
<script src="/drclothes/Public/js/bootstrap.min.js"></script>
<link href="/drclothes/Public/css/bootstrap.min.css" rel="stylesheet">
<link href="/drclothes/Public/css/admin.css" rel="stylesheet">
<script>
    $(document).ready(function () {
    //高亮当前选中的导航
    var myNav = $(".nav-sidebar > li > a");
    for (var i = 0; i < myNav.length; i++) {
        var links = myNav.eq(i).attr("href");
        var myURL = document.URL;
        var durl=/http:\/\/([^\/]+)\//i;
        domain = myURL.match(durl);
        console.log(myURL.match(durl));
        var result = myURL.replace("http://"+domain[1],"");
        if (links == result) {
            myNav.eq(i).parents("li").addClass("active");
        }
    }
});
</script>
</head>

<body style="background-color:#333;padding-top:50px;min-width: 1366px;">
    <div class="container-fluid">
        <div class="row">
            <div class="col-xs-2 padding1" style="padding-top:0px;min-height:100%;">
                <ul class="nav nav-sidebar body1" style="margin-right:50px;margin-left:50px;min-height:50%;border-radius:50px;padding-top:15%;" align="center">
                    <li><a href="/drclothes/index.php/admin/Order"><font style="font-family:'Yejing';font-size:25px;">1&nbsp;&nbsp;</font>订单管理</a></li>
                    <li><a href="/drclothes/index.php/admin/drclothes"><font style="font-family:'Yejing';font-size:25px;">2&nbsp;&nbsp;</font>商品管理</a></li>
                    <li><a href="/drclothes/index.php/admin/User"><font style="font-family:'Yejing';font-size:25px;">3&nbsp;&nbsp;</font>用户管理</a></li>
                    <li><a href="/drclothes/index.php/admin/News"><font style="font-family:'Yejing';font-size:25px;">4&nbsp;&nbsp;</font>公告列表</a></li>
                    <li><a href="/drclothes/index.php/admin/Comment"><font style="font-family:'Yejing';font-size:25px;">5&nbsp;&nbsp;</font>评论管理</a></li>
                </ul>
                <div class="nav nav-sidebar body1" style="margin-right:50px;margin-left:50px;margin-top:40%;min-height:30%;border-radius:50px;padding-top:13%;" align="center">
                    <h1 class="glyphicon glyphicon-user"></h1>
                    <h3>管理员：<?php echo I('session.usernameA'); ?></h3>
                    <h3><a href="/drclothes/index.php/admin/form/logout">退出</a></h3>
                </div>
            </div>
            <div class="col-xs-10 main body1">
        
          <h2 class="sub-header">订单管理</h2>
          <div class="table-responsive">
            <table class="table table-striped table-hover table-bordered">
              <thead>
                <tr style="word-break: normal;">
                  <th>编号</th>
                  <th>顾客名</th>
                  <th>商品名</th>
                  <th>份数</th>
                  <th>总价</th>
                  <th>添加时间</th>
                  <th>收货地址</th>
                  <th>状态</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
                <?php if(is_array($list)): $k = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$item): $mod = ($k % 2 );++$k;?><tr>
                  <td><?php echo ($k); ?></td>
                  <td><?php echo ($item["username"]); ?></td>
                  <td><?php echo ($item["name"]); ?></td>
                  <td><?php echo ($item["number"]); ?></td>
                  <td><?php echo ($item["zongjia"]); ?></td>
                  <td><?php echo ($item["addtime"]); ?></td>
                  <td><?php echo ($item["address"]); ?></td>
                  <td><?php echo ($item["status"]); ?></td>
                  <td><?php if($item["status"]=="未处理"){ ?><a class="btn btn-info" href="/drclothes/index.php/Admin/Order/changestatus?id=<?php echo ($item["id"]); ?>">变更状态</a></td><?php } ?>
                </tr><?php endforeach; endif; else: echo "$empty" ;endif; ?>
              </tbody>
            </table>
          </div>
        <div class="pages">
            <?php echo ($page); ?>
        </div>
        </div>
      </div>
    </div>
</body>
</html>